#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)
#include <iostream>
using namespace std;

int main() {
    long int sum = 0;
    long int num = 0;
    for (int i = 0; i < 2; i++)
    {
        num = num* 10 + 9;
        sum += num;

    }
    cout << sum;

    return 0;
}